﻿using System;
using System.Globalization;

using Microsoft.Practices.Prism.ViewModel;

namespace Finance.UI.ViewModels
{
    public class MonthlySummaryViewModel : NotificationObject
    {
        private double _Income;
        public string Income
        {
            get { return string.Format("￥ {0}", _Income); }
        }

        private double _Payout;
        public string Payout
        {
            get { return string.Format("￥ {0}", _Payout); }
        }

        private double _Budget;
        public string Budget
        {
            get { return string.Format("￥ {0}", _Budget); }
        }

        public string Month { get; private set; }

        public MonthlySummaryViewModel(double income, double payout, double budget)
        {
            _Income = income;
            _Payout = payout;
            _Budget = budget;
            Month = DateTime.Now.ToString("MMM", CultureInfo.InvariantCulture);
        }
    }
}
